package com.pmlt.utils;

import com.pmlt.shiro.AccountProfile;
import org.apache.shiro.SecurityUtils;

/**
 * @Author:wen-tlp
 * @Date:2021/12/25 14:14
 */
public class ShiroUtil {

    public static AccountProfile getProfile() {
        return (AccountProfile) SecurityUtils.getSubject().getPrincipal();
    }

}
